Skip to content

test(decorators): add tests for decorated static props#5314

Merged
wjhsf merged 4 commits intomasterfrom
wjh/decorated-static
Apr 4, 2025
Merged

test(decorators): add tests for decorated static props#5314
wjhsf merged 4 commits intomasterfrom
wjh/decorated-static

Conversation

@wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Mar 31, 2025

Details

Adds tests for #5161. Turns out decorating a static prop mostly behaves the same as decorating a regular prop, except @wire on a method will throw an error. The key difference in behavior is that any initial values still get set on the class static, even though the special behavior occurs on the instance.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.
  • 💔 Yes, it does introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.
  • 🔬 Yes, it does include an observable change.

GUS work item

@wjhsf wjhsf requested a review from a team as a code owner March 31, 2025 17:36
@wjhsf
Copy link
Contributor Author

wjhsf commented Apr 2, 2025

/nucleus ignore --reason "Intentionally broke webruntime"

@wjhsf wjhsf enabled auto-merge (squash) April 3, 2025 14:43
@wjhsf wjhsf merged commit dc11f9e into master Apr 4, 2025
11 checks passed
@wjhsf wjhsf deleted the wjh/decorated-static branch April 4, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants